package cn.highset.modules.base.entity;

import cn.highset.base.HighsetBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Victor
 */
@Data
@Entity
@Table(name = "t_hall")
@TableName("t_hall")
@SQLDelete(sql = "update t_hall set del_flag= 1 where id =?")
@SQLDeleteAll(sql = "update t_hall set del_flag= 1 where id =?")
@Where(clause = "del_flag=0")
@ApiModel(value = "展馆")
public class Hall extends HighsetBaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "展馆号")
    private String hallNo;

    @ApiModelProperty(value = "图片地址")
    private String imageUrl;

    @ApiModelProperty(value = "描述")
    private String labelCn;

    @ApiModelProperty(value = "描述（英文）")
    private String labelEn;

}
